<template>
  <div class="tuikuan-page">
    <!-- 顶部导航栏 -->
    <BaseHeader :navs="navs" :activeNav="activeNav" @nav-change="activeNav = $event" />

    <!-- 退费说明卡片 -->
    <section class="refund-card">
      <h2>退款说明</h2>
      <div v-for="item in refundList" :key="item.title" class="refund-section">
        <div class="refund-title">
          <span>{{ item.title }}</span>
        </div>
        <div class="refund-content">
          <ol>
            <li v-for="(line, i) in item.content" :key="i">{{ line }}</li>
          </ol>
        </div>
      </div>
    </section>

    <!-- 底部信息 -->
    <BaseFooter />
  </div>
</template>

<script>
import BaseHeader from '@/components/baseHeader.vue';
import BaseFooter from '@/components/baseFooter.vue';
export default {
  name: 'Tuikuan',
  components: { BaseHeader, BaseFooter },
  data() {
    return {
      navs: ["首页", "新闻", "题库", "资料", "产教课程"],
      activeNav: "题库",
      refundList: [
        {
          title: '直播课堂',
          content: [
            ' 课程开班之日起，24小时内可申请全额退款。',
            ' 课程开班后72小时内，未观看课程直播（以直播平台数据为准），可申请全额退款。',
            ' 课程开班后72小时内，已观看课程直播，不予退款。',
            ' 课程开班72小时后，不予退款。',
          ]
        },
        {
          title: '视频课程',
          content: [
            ' 课程购买后24小时内，未观看课程视频，可申请全额退款。',
            ' 课程购买后24小时内，已观看课程视频，不予退款。',
            ' 课程购买24小时后，不予退款。',
          ]
        },
        {
          title: '云端硬课',
          content: [
            ' 课程开班之日起，24小时内可申请全额退款。',
            ' 课程开班后72小时内，未观看课程直播（以直播平台数据为准），可申请全额退款。',
            ' 课程开班后72小时内，已观看课程直播，不予退款。',
            ' 课程开班72小时后，不予退款。',
          ]
        },
        {
          title: '学习包',
          content: [
            ' 购买后24小时内，未使用学习包内的任何服务，可申请全额退款。',
            ' 购买后24小时内，已使用学习包内的服务（如题库、视频、直播等），则不予退款。',
            ' 购买24小时后，不予退款。',
          ]
        },
        {
          title: '退款流程',
          content: [
            ' 请联系平台客服，说明退款原因，平台将在1-3个工作日内处理您的退款申请。',
            ' 退款金额将原路退回，到账时间以银行或支付平台为准。',
            ' 如有疑问请联系平台客服。',
          ]
        },
      ]
    }
  }
}
</script>

<style scoped>
.tuikuan-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #5a8fff 0%, #e6f0ff 100%);
  display: flex;
  flex-direction: column;
}
.refund-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(90,143,255,0.08);
  margin: 48px auto 0 auto;
  padding: 40px 32px 32px 32px;
  max-width: 1200px;
  min-width: 1200px;
  margin-bottom: 50px;
}
.refund-card h2 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 32px;
}
.refund-section {
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  border-radius: 8px;
  padding: 20px 18px 16px 18px;
  min-width: 180px;
  padding: 16px 20px;
  box-shadow: 4px 4px 12px 0px rgba(55,115,242,0.04);
  border-radius: 8px;
  border: 1px solid #E5E6EB;
  text-align:left;
}
.refund-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  padding: 0px 24px;
  user-select: none;
}
.refund-content {
  background: #fff;
  color: #444;
  font-size: 15px;
  li{
    margin-bottom:6px;
    color:#41464F;
  }
}
@media (max-width: 900px) {
  .refund-card {
    padding: 24px 8px;
  }
  .refund-title {
    padding: 14px 12px;
    font-size: 16px;
  }
  .refund-content {
    padding: 12px 12px 12px 20px;
    font-size: 14px;
  }
}
</style>
